import request from '@/utils/request'

export function findList(data) {
    return request({
        url: '/purchaseOrders',
        method: 'get',
        params: data,
    })
}

export function save(data) {
    if(data.id == null){
        return request({
            url: '/purchaseOrders',
            method: 'post',
            data: data,
        })
    }
}
export function findDetail(id) {
    return request({
        url: '/purchaseOrders/'+id,
        method: 'get',
    })
}
export function findGoodsList() {
    return request({
        url: '/purchaseOrders/findGoodsList',
        method: 'get',
    })
}
export function findGoodsMeal(id) {
    return request({
        url: '/purchaseOrders/findGoodsMeal/'+id,
        method: 'get',
    })
}

